﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlOpenClosedDate.ascx.cs" Inherits="WebUserControl_ControlOpenClosedDate" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc1" %>
<%@ Register src="uscTitleForm.ascx" tagname="uscTitleForm" tagprefix="uc2" %>
<script type="text/javascript">
     function pageLoad() {
      
       $("#<%= btOpen.ClientID %>").click(function() {
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } });
        }); 
        
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script> 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <uc2:uscTitleForm ID="uscTitleForm1" runat="server" Messeage="Mở ngày khóa sổ" />
    <uc1:uscMsgBox ID="uscMsgBox1"  runat="server" />
        <table>
  <tr>
    <td>TTPP</td>
    <td>
      <asp:DropDownList  width="200px" ID="DropTTPP"  runat="server" AutoPostBack="true" 
            onselectedindexchanged="DropTTPP_SelectedIndexChanged">
    </asp:DropDownList>
    </td>
    <td></td>
    <td></td>
  </tr>
   <tr>
    <td>Ngày khóa sổ</td>
    <td>
    <asp:TextBox ID="txtNgayKhoaSo" ReadOnly="true" BackColor="Yellow" width="100px"  runat="server"></asp:TextBox>
    </td>
     <td><asp:Button ID="btOpen" runat="server" Text="Mở khóa sổ" 
             onclick="btOpen_Click"/></td>
    <td></td>
  </tr>
  </table>
  
    </ContentTemplate>
</asp:UpdatePanel>
